﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Jayden.Dll.PathFinding;
using System.Globalization;

namespace Jayden.Dll.Navigation.Core
{
	public class Way : CorePathInformation
	{
		private double m_Distance;

		public Way(Coordinate start, Coordinate end) : this(start, end, Coordinate.Distance(start, end)) { }
		public Way(PathNode start, PathNode end, double distance)
			: base(start, end)
		{
			m_Distance = distance;
		}

		public double Distance { get { return m_Distance; } }

		public override string ToString()
		{
			return base.ToString() + " (dist: " + (int)(Distance * 1000) + "m.)";
		}
	}
}
